﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Tester
{
    public partial class MainForm : Form
    {
        public MainForm()
        {
            InitializeComponent();
        }

        private void button1_Click( object sender, EventArgs e )
        {
            this.TextEditorCompiler.InputTextBox.Text = "using System;" + Environment.NewLine;
            this.TextEditorCompiler.InputTextBox.Text += "using System.Collections;" + Environment.NewLine;
            this.TextEditorCompiler.InputTextBox.Text += "using System.IO;" + Environment.NewLine;
            this.TextEditorCompiler.InputTextBox.Text += "using System.Windows.Forms;" + Environment.NewLine;
            this.TextEditorCompiler.InputTextBox.Text += Environment.NewLine;
            this.TextEditorCompiler.InputTextBox.Text += "namespace CodeEditorCompiler" + Environment.NewLine;
            this.TextEditorCompiler.InputTextBox.Text += "{" + Environment.NewLine;
            this.TextEditorCompiler.InputTextBox.Text += "	public class TestClass : CodeEditorCompiler.IExecutable" + Environment.NewLine;
            this.TextEditorCompiler.InputTextBox.Text += "	{" + Environment.NewLine;
            this.TextEditorCompiler.InputTextBox.Text += "		public TestClass()" + Environment.NewLine;
            this.TextEditorCompiler.InputTextBox.Text += "		{" + Environment.NewLine;
            this.TextEditorCompiler.InputTextBox.Text += "		}" + Environment.NewLine;
            this.TextEditorCompiler.InputTextBox.Text += Environment.NewLine;
            this.TextEditorCompiler.InputTextBox.Text += "		public void Execute() " + Environment.NewLine;
            this.TextEditorCompiler.InputTextBox.Text += "		{" + Environment.NewLine;
            this.TextEditorCompiler.InputTextBox.Text += "			Console.WriteLine(\"This is a test message\");" + Environment.NewLine;
            this.TextEditorCompiler.InputTextBox.Text += "			MessageBox.Show(\"Executed\");" + Environment.NewLine;
            this.TextEditorCompiler.InputTextBox.Text += "		}" + Environment.NewLine;
            this.TextEditorCompiler.InputTextBox.Text += "	}" + Environment.NewLine;
            this.TextEditorCompiler.InputTextBox.Text += "}" + Environment.NewLine;
        }

        private void TextEditorCompiler_Load( object sender, EventArgs e )
        {

        }
    }
}
